import {
  Column,
  Entity,
  PrimaryGeneratedColumn,
  BeforeInsert,
  CreateDateColumn,
  Generated,
  OneToOne,
  JoinColumn,
  ManyToOne,
} from 'typeorm'
import { Crud } from './crud.entity'
@Entity()
export class Tags {
  @PrimaryGeneratedColumn()
  id: string

  @Column()
  tags: string

  @ManyToOne(() => Crud, (crud) => crud.tags)
  @JoinColumn()
  crud: Crud
}
